package com.cbts.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Receipt entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "receipt", catalog = "cbts")
public class Receipt implements java.io.Serializable {

	// Fields

	private ReceiptId id;
	private String bfilename;
	private String remark;
	private String fileType;

	// Constructors

	/** default constructor */
	public Receipt() {
	}

	/** full constructor */
	public Receipt(ReceiptId id, String bfilename, String remark,
			String fileType) {
		this.id = id;
		this.bfilename = bfilename;
		this.remark = remark;
		this.fileType = fileType;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "applayFileId", column = @Column(name = "applayFileId", nullable = false, length = 26)),
			@AttributeOverride(name = "afilename", column = @Column(name = "aFilename", nullable = false, length = 225)) })
	public ReceiptId getId() {
		return this.id;
	}

	public void setId(ReceiptId id) {
		this.id = id;
	}

	@Column(name = "bFilename", nullable = false, length = 225)
	public String getBfilename() {
		return this.bfilename;
	}

	public void setBfilename(String bfilename) {
		this.bfilename = bfilename;
	}

	@Column(name = "remark", nullable = false, length = 225)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "fileType", nullable = false, length = 3)
	public String getFileType() {
		return this.fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

}